﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

public partial class ThongBao : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
    }
    public void GoiThongBao(object sender, EventArgs e)
    {
        string tieude = txtTieuDeTN.Text;
        string noidung = txtNoiDungTN.Text;
        string banquantri = Session["user"].ToString();
        string gg = mucdo.Text;
        int val = int.Parse(gg);

        string sql = "INSERT INTO TINTUC(BANQUANTRI,TIEUDERUTGON,NOIDUNG,MUCDO) VALUES(@BANQUANTRI,@TIEUDERUTGON,@NOIDUNG,@MUCDO)";
        Database.ExecuteNonQuery(sql, "@BANQUANTRI", banquantri, "@TIEUDERUTGON", tieude, "@NOIDUNG", noidung, "@MUCDO", val);
    }


}